const webpack = require("./webpack/webpack");
debugger
const webpackOptions = require("./webpack.config");
const compiler = webpack(webpackOptions);
//4.执行对象的run方法开始执行编译
compiler.run((err, stats) => {
    debugger
    console.log(err);
    console.log(
        JSON.stringify(stats.toJson({
            assets: true, //资源
            chunks: true, //代码块
            modules: true, //模块
            entries: true, //入口；
        }), null, 2)
    );
});